package com.shop.entity;

import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class Order {
    private Long id;
    private Long userId;
    private Long shopId;
    private BigDecimal totalAmount;
    private String status;
    private LocalDateTime createTime;
    
    private User user;  // 关联的用户信息
    private Shop shop;  // 关联的店铺信息
    private List<OrderItem> items;  // 订单项列表
} 